package cn.service;

import cn.constant.ApiConstant;
import cn.entity.RealName;
import cn.entity.User;
import cn.repository.UserRepository;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author m on 2023/1/28
 * Description:
 */
@Service
public class RealNameServiceImpl implements RealNameService {

    private final UserRepository userRepository;


    @Autowired
    public RealNameServiceImpl(UserRepository userRepository) {
        this.userRepository = userRepository;
    }

    @Override
    public RealName find() {
        return null;
    }

    @Override
    public User save(User user) {
        userRepository.save(user);
        return user;
    }

}
